import request from '@/utils/request'

// 查询客户管理列表
export function listBasicClient(query) {
  return request({
    url: '/basic/basicClient/list',
    method: 'get',
    params: query
  })
}

// 查询客户管理详细
export function getBasicClient(clientId) {
  return request({
    url: '/basic/basicClient/' + clientId,
    method: 'get'
  })
}

// 新增客户管理
export function addBasicClient(data) {
  return request({
    url: '/basic/basicClient',
    method: 'post',
    data: data
  })
}

// 修改客户管理
export function updateBasicClient(data) {
  return request({
    url: '/basic/basicClient',
    method: 'put',
    data: data
  })
}

// 删除客户管理
export function delBasicClient(clientId) {
  return request({
    url: '/basic/basicClient/' + clientId,
    method: 'delete'
  })
}

// 导出客户管理
export function exportBasicClient(query) {
  return request({
    url: '/basic/basicClient/export',
    method: 'get',
    params: query
  })
}